package com.gvfish.backingbean;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.gvfish.entity.Link;
import com.gvfish.service.LinkManager;

@Repository
public class LinkMain {
	@Autowired
	private LinkManager linkManager;
	private List<Link> links;

	public void setLinks(List<Link> links) {
		this.links = links;
	}

	public List<Link> getLinks() {
		if(links == null){
			links =linkManager.findAll();
		}
		return links;
	}
	public void edit(){
		
	}
}
